package com.taotao.sso.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.taotao.sso.pojo.User;

import java.io.IOException;
import java.util.Date;

public interface UserService {




	//type为类型，可选参数1、2、3分别代表username、phone、email

	public Boolean checkUser(String param, Integer type);
		


	//用户的注册
	public Boolean addUser(User user);


	public String login(String username, String password) throws JsonProcessingException ;

	public User getUserInfo(String token) throws IOException;
}
